package pfc.view.view;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JDesktopPane;

import pfc.Resource;

public class MyDesktopPane extends JDesktopPane
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Image img;
	private boolean changed = false;
	
	public MyDesktopPane()
	{
		try
		{
			img = javax.imageio.ImageIO.read(new java.net.URL(Resource.class.getResource("cvrd_1010.jpg"), "cvrd_1010.jpg"));
		}
		catch(Exception e){}//do nothing
	}
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		if(img != null) g.drawImage(img, 0,0,this.getWidth(),this.getHeight(),this);
		else g.drawString("Image not found", 50,50);
	}
	public boolean isChanged() {
		return changed;
	}
	public void setChanged(boolean changed) {
		this.changed = changed;
	}
	
}

